<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
function valueCopy(ori,obj){
	alert("aaaaaa");
	document.getElementById(obj).value=document.getElementById(ori).value;
}
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoAdd"/>组织机构</span></li>
			<li class="line">line</li>
		</ul>
	</div>
    <form id="orgaAddFrom" method="post" action="<c:url value="/organization/organizationAdd.shtml"/>" onsubmit="return validateCallback(this,navTabAjaxDone);">
    	<table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">          
        	<tbody>
            	<tr>
                	<td>所属机构：</td>
                    <td>
                        <input type="hidden" name="org_add.orgIdParent" id="org_add_orgIdParent" value="${parentOrg.orgId}"/>
                        <input type="hidden" name="org_add.orgGradeParent" id="org_add_orgGradeParent" value="${parentOrg.orgGrade}"/>
                        <input type="text" name="org_add.orgNameParent" id="org_add_orgNameParent" value="${parentOrg.orgName}" readonly="readonly"/>
						<a class="btnLook" href="<c:url value="/organization/goOrganizationParentLookup.shtml"/>" lookupGroup="org_add">选择所属机构</a>	
		                <a class="btnClean" href="javascript:;" onclick="$('#org_add_orgIdParent').val('');$('#org_add_orgGradeParent').val('');$('#org_add_orgNameParent').val('');">清空</a>
                    </td>
                	<td>机构类型：</td>
                    <td>
                    	<select class="required" name="org_add_orgScope" id="org_add_orgScope">
                        	<option value="">--请选择--</option>
							<c:forEach items="${scopeList}" var="atrScope" varStatus="index">
							<option value="${atrScope.atrValue}">${atrScope.atrName}</option>
							</c:forEach>
						</select>
                	</td>
                </tr>
                <tr>
                    <td>机构名称：</td>
                    <td>
                        <input type="text" class="required" name="org_add_orgName" id="org_add_orgName" maxlength="20"/>
                    </td>
                    <td>机构编码：</td>
                    <td>
                        <input type="text" name="org_add_orgCode" id="org_add_orgCode" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>机构职能：</td>
                    <td colspan="3">
                        <input type="text" name="org_add_orgFunction" id="org_add_orgFunction" maxlength="50"/>
                    </td>
                </tr>
                <tr>
                    <td>联系地址：</td>
                    <td colspan="3">
                        <input type="text" name="org_add_orgAddress" id="org_add_orgAddress" maxlength="50"/>
                    </td>
                </tr>
                <tr>
                    <td>联系邮编：</td>
                    <td>
                        <input type="text" name="org_add_orgZip" id="org_add_orgZip" maxlength="6"/>
                    </td>
                    <td>联系电话：</td>
                    <td>
                        <input class="phone" type="text" name="org_add_orgPhone" id="org_add_orgPhone" maxlength="13"/>
                    </td>
                </tr>
                <tr>
                 	<td>所属地区：</td>
                    <td>
                        <input type="hidden" name="org_add.areaId" id="org_add_areaId" value=""/>
                    	<input type="text" name="org_add.areaName" id="org_add_areaName" value="" readonly="readonly"/>
                    	<a class="btnLook" href="<c:url value="/organization/goAreaLookup.shtml"/>" lookupGroup="org_add">选择所属地区</a>
		                <a class="btnClean" href="javascript:;" onclick="$('#org_add_areaId').val('');$('#org_add_areaName').val('');">清空</a>
                    </td>
                    <td>显示排序：</td>
                    <td>
                        <input type="text" name="org_add_orgSort" id="org_add_orgSort" maxlength="3"/>
                    </td>
                </tr>
             </tbody>
        </table>
		<div class="panelBar">
        	<div class="buttonActive">
        	<c:if test="${p:isPower('/organization/organizationAdd.shtml',sessionScope.loginAccount)}">
           	<div class="buttonContent"><button type="submit"><spring:message code="add.btnAdd"/></button></div>
           	</c:if>
           	</div>
		</div>
    </form>
</div>